/*
 * 2011-04-13 created by liugq
 */
package com.jwater.web.ui.tag.components;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.components.ClosingUIBean;
import org.apache.struts2.views.annotations.StrutsTag;

import com.opensymphony.xwork2.util.ValueStack;

@StrutsTag(
	    name="accordion",
	    tldTagClass="com.jwater.web.ui.tags.AccordionTag",
	    description="Renders an Accordion",
	    allowDynamicAttributes=true)
public class Accordion extends ClosingUIBean {

	public static final String TEMPLATE = "accordion";
    public static final String TEMPLATE_CLOSE = "accordion-close";
    public static final String COMPONENT_NAME = Accordion.class.getName();

	public Accordion(ValueStack stack, HttpServletRequest request, HttpServletResponse response) {
        super(stack, request, response);
    }
    
	@Override
	public String getDefaultOpenTemplate() {
		return TEMPLATE;
	}

	@Override
	protected String getDefaultTemplate() {
		return TEMPLATE_CLOSE;
	}

}
